# Swap comments on the two following lines to switch betwen
# click does not raise and click to raise.
# $CLIENT_CLICK = "Focus"
$CLIENT_CLICK = "Focus; Raise"

# Commented out !!!!  There's no need !!!!
# INCLUDE = "$_PEKWM_ETC_PATH/mouse_system"

# Swap comments on the two folling lines to switch between
# sloppy and click to focus
# INCLUDE = "$_PEKWM_ETC_PATH/mouse_sloppy"
INCLUDE = "$_PEKWM_ETC_PATH/mouse_click"

FrameTitle {
        ButtonRelease = "1" { Actions = "Raise; Focus; ActivateClient" }
        ButtonRelease = "3" { Actions = "Toggle Shaded" }
        Motion = "1" { Threshold = "4"; Actions = "Raise; Move" }
}

OtherTitle {
        ButtonRelease = "1" { Actions = "Raise; Focus" }
        ButtonRelease = "2" { Actions = "Focus" }
        ButtonRelease = "3" { Actions = "Close" }
        ButtonRelease = "Mod4 3" { Actions = "ShowMenu Window" }
        ButtonRelease = "Mod1 4" { Actions = "SendToWorkspace Next; GotoWorkspace Next" }
        ButtonRelease = "Mod1 5" { Actions = "SendToWorkspace Prev; GotoWorkspace Prev" }
        ButtonRelease = "Mod1 Shift 4" { Actions = "SendToWorkspace PrevV; GotoWorkspace PrevV" }
        ButtonRelease = "Mod1 Shift 5" { Actions = "SendToWorkspace NextV; GotoWorkspace NextV" }
        Motion = "1" { Threshold = "4"; Actions = "Raise; Move" }
        Motion = "Mod1 1" { Threshold = "4"; Actions = "Raise; Move" }
        Motion = "Mod4 1" { Threshold = "4"; Actions = "Raise; Move" }
}

Border {
        TopLeft { ButtonPress = "1" { Actions = "Focus; Resize TopLeft" } }
        Top { ButtonPress = "1" { Actions = "Focus; Resize Top" } }
        TopRight { ButtonPress = "1" { Actions = "Focus; Resize TopRight" } }
        Left { ButtonPress = "1" { Actions = "Focus; Resize Left" } }
        Right { ButtonPress = "1" { Actions = "Focus; Resize Right" } }
        BottomLeft { ButtonPress = "1" { Actions = "Focus; Resize BottomLeft" } }
        Bottom { ButtonPress = "1" { Actions = "Focus; Resize Bottom" } }
        BottomRight { ButtonPress = "1" { Actions = "Focus; Resize BottomRight" } }
}

Client {
        ButtonPress = "1" { Actions = "$CLIENT_CLICK" }
        Motion = "Mod1 1" { Threshold = "4"; Actions = "Focus; Raise; Move" }
        Motion = "Mod1 3" { Actions = "Resize" }
}

Root {
        ButtonRelease = "3" { Actions = "ShowMenu Root" }
        ButtonRelease = "1" { Actions = "HideAllMenus" }
}

Menu {
        Enter = "Any Any" { Actions = "Focus" }
        Motion = "Mod1 1" { Threshold = "4"; Actions = "Focus; Raise; Move" }
}

Other {
        Enter = "Any Any" { Actions = "Focus" }
        ButtonRelease = "3" { Actions = "Close" }
        Motion = "1" { Actions = "Focus; Raise; Move" }
        Motion = "Mod1 1" { Threshold = "4"; Actions = "Focus; Raise; Move" }
}
